<template>
  <div>
    {{ message }}
  </div>
</template>

<script>
import { onMounted ,onBeforeMount} from "vue";
export default {
  setup() { //入口函数
    const message = 'hello'
    onMounted(() => {
      console.log('onMounted')
    })
    onBeforeMount(() => {
      console.log('onBeforeMount');
      
    })
    return {
      message
    }
  }
}
</script>

<style lang="scss" scoped>

</style>